<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div><img id="indicator_citems_prec01" src="images/ajax-loader.gif" alt="Guardando..." style="display: none" /></div>

<sj:div  id='resultado_act_454545dfgf2' >
    <s:actionmessage theme="jquery" /> 
    <s:actionerror theme="jquery" /> 
	<s:form action="guardar_precontrato.action" id="form_crearact_222333" theme="simple" method="post" enctype="multipart/form-data" >
	    <s:set name="n_codigo"><s:property value="cod_prospecto" /></s:set>
		<s:url id="car_pre1" value="agregar_item_prec.action"  >
			   <s:param name='cod_prospecto' value='%{n_codigo}' ></s:param>
		</s:url>
		<s:url id="car_pre_add" value="agregar_item_precz.action"  >
			   <s:param name='cod_prospecto' value='%{n_codigo}' ></s:param>
		</s:url>
		<sj:div id='cargar_items_prec' href="%{car_pre1}" indicator="indicator_citems_prec01" >	
	    </sj:div>
		<table width="100%">
		    <tr>
				<td width="10%">Precontrato Escaneado</td>
				<td width="50%" colspan='2' >
				   <s:file cssClass='caja_3' size='60' name="archivo"  />
				</td>
			</tr>
			<tr>
				<td width="10%">Observaciones</td>
				<td width="30%" colspan='2' >
				   <s:textarea name='obs' rows="5" cols="50"></s:textarea>
				</td>	
			</tr>
			<tr>
				<td align='left' colspan='2' >
				  <img id="indicator_citems_prec01" src="images/ajax-loader3.gif" alt="Guardando..." style="display: none" />
			       <sj:a id="lnk_agrega_fila_prec" href="%{car_pre_add}" targets="cargar_items_prec" indicator="indicator_citems_prec01" button="true"  buttonIcon="ui-icon-refresh" >
				  	Agregar fila
				   </sj:a> 
			    <td>
			    <td align='left'  ><img id="indicator_guardar_p3722aaaxx" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" /> 
					<sj:submit id='btn_cargarprecontrato'  targets="resultado_act_454545dfgf2" indicator="indicator_citems_prec01" button="true" value="Guardar precontrato" theme="simple" />
				</td>
			</tr>
		</table>
   </s:form>
</sj:div>
</body>
</html>